package model.filtros;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

import org.junit.Test;

public class CantCuotasHastaTest extends FiltrosDeBusquedaTest {
	
	@Test
	public void testCantCuotasHastaCoincide() {
		when(prestamoMock.getCantCuotas()).thenReturn(18);
		assertTrue(new CantCuotasHasta(24).coincide(prestamoMock));
		verify(prestamoMock).getCantCuotas();
	}
	
	@Test
	public void testCantCuotasHastaNoCoincide() {
		when(prestamoMock.getCantCuotas()).thenReturn(18);
		assertFalse(new CantCuotasHasta(12).coincide(prestamoMock));
		verify(prestamoMock).getCantCuotas();
	}

}
